"use strict"
/**
 *
 * @param {import("egg").Application} app
 */
module.exports = app => {
	const Sequelize = app.Sequelize
	const sequelize = app.model
	let shareInfo = sequelize.define("shareInfo", {
		key: {
			type: Sequelize.STRING,
			comment: "转发分享关键词"
		},
		title: {
			type: Sequelize.STRING,
		},
		image_url: {
			type: Sequelize.STRING,
		},
		aid: {
			type: Sequelize.INTEGER
		},
		stat: {
			type: Sequelize.TINYINT
		},
		remarks: {
			type: Sequelize.STRING,
		},
		desc: {
			type: Sequelize.STRING,
		},
		attr: {
			type: Sequelize.STRING,
			comment:" 其他属性"
		}
	}, {
		tableName: "share_info",
		timestamps: false,
	})
	return shareInfo
}